************************************************************************************************
*            
*     Energy Transitions and Household Finance: Evidence from U.S. Coal Mining
*                            
*                               Ding Du & Stephen A. Karolyi 
*                         
************************************************************************************************

* This code constructs estimation data and performs the analysis used in the study. 
* STATA 17

clear all											
set more off										

* Assume that all files are in the replication folder, ".\replication_folder"
cd ".\replication_folder"

* Part 1: Merge all raw data. Please refer to Section 1 of the paper for data sources
do ".\replication_folder\Merge_raw_data.do"

* Part 2: Generate and label variables 
do ".\replication_folder\Generate_variables.do"

* Part 3: Empirical analyses 
do ".\replication_folder\Empirical_analyses.do"
